package cn.edu.gsau.info.controller;

import cn.edu.gsau.info.models.Kanwujibie;
import cn.edu.gsau.info.models.ResponseResult;
import cn.edu.gsau.info.service.IKanwujibieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/kanwujibie")
public class KanwujibieController {

    @Autowired
    IKanwujibieService kanwujibieService;


    @GetMapping("/findall")
    public ResponseResult findall(){
        List<Kanwujibie> list=kanwujibieService.list(null);
        return new ResponseResult(200,"success",list);
    }
}
